//
//  MacShutdownCommand.swift
//  ArchitectGenerics
//
//  Created by 姚胜龙 on 2017/6/6.
//  Copyright © 2017年 姚胜龙. All rights reserved.
//

import UIKit

//具体命令：Mac电脑关机命令
class MacShutdownCommand: ComputerCommand {

    private var macComputer:MacComputer?

    init(macComputer:MacComputer) {
        self.macComputer = macComputer
    }

    func execute() {
        self.macComputer?.shutdown()
    }
}
